<template>

    <div class="card">
      <div class="title">{{info.title}}</div>
      <div class="info">
        <div class="date">发布时间：{{info.createdTime}} </div>
        <div class="name">发布人：{{info.createBy}}</div>
      </div>
      <div class="content" v-html="info.content"> 
        
      </div>
    </div>

</template>

<script>
export default {
  name: 'newsDetail',
  components: {},
  data() {
    return {
      info:{}
    }
  },

  methods: {},

  computed: {},

  mounted() {
    this.$api.getArticleDetail({id:this.$route.query.id}).then(res=>{
      this.info = res.data
    })
  },
}
</script>
<style lang='less' scoped>
.card {
  background-color: #fff;
  height: 100%;
  padding: 48px 30px;
  box-sizing: border-box;
  .title {
    font-size: 18px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    text-align: center;
    margin-bottom: 48px;
  }
  .info {
    margin: 0 auto;
    font-size: 12px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #999999;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    
  }
  .content{
    margin-top: 32px;
  }
}
/deep/ table {
  border-top: 1px solid #000 !important;
  border-left: 1px solid #000 !important;
}
/deep/ td ,/deep/ th{
  border-bottom: 1px solid #000 !important ;
  border-right: 1px solid #000 !important;
}

</style>